package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 帮砍价记录
 * @TableName full_haggle_record_help
 */
@TableName(value ="full_haggle_record_help")
@Data
@ApiModel("帮砍记录")
@Accessors(chain = true)
public class FullHaggleRecordHelp implements Serializable {
    /**
     * 帮砍价记录ID
     */
    @TableId(value = "id")
    private Long id;



    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    @TableField(value = "durg_haggle_id")
    private Long durgHaggleId;

    /**
     * 发起砍价记录id
     */
    @ApiModelProperty(value = "发起砍价记录id")
    @TableField(value = "record_id")
    private Long recordId;

    /**
     * 帮砍人id
     */
    @ApiModelProperty(value = "帮砍人id")
    @TableField(value = "help_id")
    private Long helpId;

    /**
     * 帮砍人姓名
     */
    @ApiModelProperty(value = "帮砍人姓名")
    @TableField(value = "help_name")
    private String helpName;

    /**
     * 砍价金额
     */
    @ApiModelProperty(value = "砍价金额")
    @TableField(value = "help_price")
    private BigDecimal helpPrice;

    /**
     * 砍价时间
     */
    @ApiModelProperty(value = "砍价时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 商户id
     */
    @ApiModelProperty(value = "..", hidden = true)
    @TableField(value = "merchant_id")
    private Long merchantId;

    @ApiModelProperty("帮砍人头型")
    @TableField(value = "help_head_sculpture")
    private String helpHeadSculpture;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}